package com.bdqn.membersystem.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bdqn.membersystem.pojo.UserRefer;
import com.bdqn.membersystem.mapper.UserReferMapper;
import com.bdqn.membersystem.service.UserReferService;
/**
* 作者：姚岳城
* 日期：2020/4/3 16:53
*/

@Service
public class UserReferServiceImpl implements UserReferService{

    @Resource
    private UserReferMapper userReferMapper;

    @Override
    public int deleteByPrimaryKey(String referLogId) {
        return userReferMapper.deleteByPrimaryKey(referLogId);
    }

    @Override
    public int insertSelective(UserRefer record) {
        return userReferMapper.insertSelective(record);
    }

    @Override
    public UserRefer selectByPrimaryKey(String referLogId) {
        return userReferMapper.selectByPrimaryKey(referLogId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserRefer record) {
        return userReferMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateBatch(List<UserRefer> list) {
        return userReferMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<UserRefer> list) {
        return userReferMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(UserRefer record) {
        return userReferMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(UserRefer record) {
        return userReferMapper.insertOrUpdateSelective(record);
    }

}
